
Skt.ToolOptions = L.Class.extend({
	
  statics:{
    MAX_WIDTH: 1000,
    MIN_WIDTH: 1,
  },

  initialize: function(){
    this._color = "#000000";
    this._opacity = 1.0;
    this._width = 5;
  },

  color: function(value){
    if ( value === undefined )
      return this._color;

    this._color = value;
    return this;    
  },

  width: function(value) {
    if (value === undefined)
      return this._width;

    if (value < this.MIN_WIDTH)
      value = this.MIN_WIDTH;
    else if (value > this.MAX_WIDTH)
      value = this.MAX_WIDTH;

    this._width = value;
    return this;
  },

  opacity: function(value) {
    if (value === undefined)
      return this._opacity;

    if (value < 0)
      value = 0;
    else if (value > 1)
      value = 1;

    this._opacity = value;
    return this;
  }  


});
